MODULE	'exec/semaphores'

CONST NEWLOCKS=1

OBJECT Layer
	Front:PTR TO Layer,
	Back:PTR TO Layer,
	ClipRect:PTR TO ClipRect,
	RP:PTR TO RastPort,
	MinX:INT,
	MinY:INT,
	MaxX:INT,
	MaxY:INT,
	reserved[4]:BYTE,
	Priority:UWORD,
	Flags:UWORD,
	SuperBitMap:PTR TO BitMap,
	SuperClipRect:PTR TO ClipRect,
	Window:LONG,
	Scroll_X:INT,
	Scroll_Y:INT,
	CR:PTR TO ClipRect,
	CR2:PTR TO ClipRect,
	CRNew:PTR TO ClipRect,
	SuperSaverClipRects:PTR TO ClipRect,
	_cliprects:PTR TO ClipRect,
	LayerInfo:PTR TO Layer_Info,
	Lock:SS,
	BackFill:PTR TO Hook,
	reserved1:LONG,
	ClipRegion:PTR TO Region,
	Savecliprects:PTR TO Region,
	reserved2[22]:BYTE,
	DamageList:PTR TO Region

OBJECT ClipRect
	Next:PTR TO ClipRect,
	Prev:PTR TO ClipRect,
	Lobs:PTR TO Layer,
	BitMap:PTR TO BitMap,
	MinX:INT,
	MinY:INT,
	MaxX:INT,
	MaxY:INT,
	_p1:LONG,
	_p2:LONG,
	reserved:LONG,
	Flags:LONG

CONST	CR_NEEDS_NO_CONCEALED_RASTERS=1,
		CR_NEEDS_NO_LAYERBLIT_DAMAGE=2,
		ISLESSX=1,
		ISLESSY=2,
		ISGRTRX=4,
		ISGRTRY=8,
		LR_FRONT=0,
		LR_BACK=4,
		LR_RASTPORT=12,
		CR_PREV=4,
		CR_LOBS=8
